package com.cowin.sys.service.impl;

import com.cowin.sys.dao.TcSysCodeListMapper;
import com.cowin.sys.model.TcSysCodeList;
import com.cowin.sys.model.vo.IdNameVo;
import com.cowin.sys.model.vo.SysCodeVo;
import com.cowin.sys.service.TcSysCodeListService;
import com.cowin.base.AbstractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by  on 2020/01/07.
 * @author CodeGenerator
 */
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class TcSysCodeListServiceImpl extends AbstractServiceImpl<TcSysCodeList> implements TcSysCodeListService {

    @Resource
    private TcSysCodeListMapper tcSysCodeListMapper;

    @Override
    public List<IdNameVo> getTmBasUlocId() {
        return tcSysCodeListMapper.getTmBasUlocId();
    }

    @Override
    public List<SysCodeVo> findCodeNameAndValueByType(String type) {
        return tcSysCodeListMapper.findCodeNameAndValueByType(type);
    }

}
